package ups.MapParse;
import java.util.Comparator;


public class LetterPatternComparator implements Comparator<LetterPattern> {
	public int compare( LetterPattern p1, LetterPattern p2 )
	{	
		if( p1.getWidth() == p2.getWidth() ) {
			return 0;
		}
		
		if( p1.getWidth() < p2.getWidth() )
		{
			return 1;
		}
		
		return -1;
	}
}
